﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Honestysoft.Financing.WebUI.Module.Audit
{
    /// <summary>
    /// ToDatabase 的摘要说明
    /// </summary>
    public class ToDatabase : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            try
            {
                context.Response.ContentType = "text/plain";
                string id = context.Request.Params["ID"];
                string userID = context.Request.Params["UserID"];
                string projectId = "", contractId = "";
                new Honestysoft.Financing.BusinessLogic.Audit("").ToDatabase(id, userID);
                context.Response.Write("1");
            }
            catch
            {
                context.Response.Write("0");
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}